<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>同步分类数据</title>
		<meta name="viewport" content="width=device-width,height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="renderer" content="webkit" />
		<meta name="aplus-xplug" content="NONE">
		<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/iconfont/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="/static/layui/css/modules/admin/default/admin.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/new_layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/default.css" />
		<script type="text/javascript" charset="utf-8" src="/static/layui/layui.js"></script>
		<script type="text/javascript" charset="utf-8" src="/static/js/index.js"></script>
		<style>
			.block-one {
				margin-left: 10px;
			}
			
			.block-two {
				margin-left: 50px;
			}
			
			.block-three {
				margin-left: 90px;
			}
			
			form .layui-form-item .layui-input-inline {
				width: auto;
			}
			
			.layui-form-item {
				margin-bottom: 0;
			}
			.layui-word-aux{ color: #ff6600!important; margin-top: 2px;}
		</style>
	</head>

	<body class="default">
		<div style="margin: 30px 20px;">
			<form class="layui-form" action="{:url('Category/saveCopy')}">
				<input type="hidden" name="select_site_id" value="{$select_site_id}" />
				{volist name="category_info" id="list"}
				<div class="layui-form-item">
					<div class="layui-input-block block-one">
						<input class="{if condition="in_array($list['category_sign'],$category_sign_arr) EQ true"}selected{/if}" type="checkbox" name="category_sign[]" value="{$list.category_sign}" lay-filter="select_category" lay-skin="primary" title="{$list.category_name}">
					</div>
					{volist name="list['_']" id="vo"}
					<div class="layui-form-item">
						<div class="layui-input-block block-two">
							<input class="{if condition="in_array($vo['category_sign'],$category_sign_arr) EQ true"}selected{/if}" type="checkbox" name="category_sign[]" value="{$vo.category_sign}" lay-filter="select_category" lay-skin="primary" title="{$vo.category_name}">
						</div>
						{if condition="count($vo['_']) GT 0"}
						<div class="layui-form-item">
							<div class="layui-input-block block-three">
								{volist name="vo['_']" id="v"}
								<div class="layui-input-inline">
									<input class="{if condition="in_array($v['category_sign'],$category_sign_arr) EQ true"}selected{/if}" type="checkbox" name="category_sign[]" value="{$v.category_sign}" lay-filter="select_category" lay-skin="primary" title="{$v.category_name}">
								</div>
								{/volist}
							</div>
						</div>
						{/if}
					</div>
					{/volist}
				</div>
				{/volist}
				<div class="layui-form-item" style="margin-top: 15px;">
					<button class="layui-btn layui-btn-normal" type="button" lay-filter="submit_copy" lay-submit>同步数据</button>
				</div>
			</form>

		</div>
		<script>
		</script>
		<script src="/static/js/category/copy.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>